<div class="search-box">
	<form class="search_form layui-form" lay-filter="returned_search_form">
		<div class="layui-inline" style="display:none;">
			<label class="layui-form-label">类型</label>
			<div class="layui-input-inline search-radio-box">
				<input type="radio" name="returned_type" value="1" lay-filter="returned_type" title="退货" checked="">
				<input type="radio" name="returned_type" value="2" lay-filter="returned_type" title="换货">
				<input type="radio" name="returned_type" value="3" lay-filter="returned_type" title="维修">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">订单号</label>
			<div class="layui-input-inline">
				<input type="text" name="order_no" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">产品编号</label>
			<div class="layui-input-inline">
				<input type="text" name="goods_sku" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<table class="layui-hide" id="returned_list" lay-filter="returned_list"></table>
<script>
	var returned_list_url = "{:url('returned/ajaxList')}";
	var returned_delete_url = "{:url('returned/ajaxDelete')}";
	var returned_one_url = "{:url('returned/ajaxOneData')}";
	var returned_save_url = "{:url('returned/saveData')}";
	var returned_cols = {$cols};
	var depot_list_url = "{:url('Depot/ajaxList')}";
	var push_beijing_url = "{:url('@bjapi/api/afsAuditNotice')}";
	var push_beijing_over_url = "{:url('@bjapi/api/afsResultNotice')}";
	var site_id = "{$get_site['site_id']}";
</script>
<script type="text/html" id="is_send_backTpl">
	{{# if(d.is_send_back == 1){ }}
	<div class="layui-anim circle layui-bg-red" data-title="未回寄">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.is_send_back == 2){ }}
	<div class="layui-anim circle layui-bg-blue" data-title="已回寄">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-orange" data-title="已收货">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="returned_stateTpl">
	{{# if(d.returned_state == 1){ }}
	<div class="layui-anim circle layui-bg-orange" data-title="等待处理">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.returned_state == 2){ }}
	<div class="layui-anim circle layui-bg-blue" data-title="完成">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.returned_state == 4){ }}
	<div class="layui-anim circle layui-bg-green" data-title="同意">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="拒绝">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="apply_stateTpl">
	{{# if(d.apply_state == 1){ }}
	<div class="layui-anim circle layui-bg-orange" data-title="等待处理">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.apply_state == 2){ }}
	<div class="layui-anim circle layui-bg-blue" data-title="同意">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="拒绝">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="shopping_stateTpl">
	{{# if(d.shopping_state == 1){}}
	<div class="layui-anim circle layui-bg-red" data-title="未配送">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else { }}
	<div class="layui-anim circle layui-bg-blue" data-title="已配送">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="returned_tool">
	<div class="layui-btn-group">

		<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="pass" data-title="同意退货"><i class="layui-icon layui-icon-ok"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="refuse" data-title="拒绝退货"><i class="layui-icon layui-icon-radio"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="over" data-title="完成"><i class="layui-icon layui-icon-radio"></i></a>

	</div>
</script>
<script type="text/html" id="returned_tool_back">
		<a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="send_back_goods" data-title="回寄产品"><i class="layui-icon layui-icon-spread-left"></i></a>
		<a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="get_send_back" data-title="回寄产品收货"><i class="layui-icon layui-icon-vercode"></i></a>
		<a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="push_send_back" data-title="产品发货"><i class="layui-icon layui-icon-release"></i></a>
		<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="over" data-title="完成"><i class="layui-icon layui-icon-ok"></i></a>
		<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="pass" data-title="同意"><i class="layui-icon layui-icon-ok"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="refuse" data-title="拒绝申请"><i class="layui-icon layui-icon-radio"></i></a>
</script>
<script src="/static/js/returned/returned.js" type="text/javascript" charset="utf-8"></script>